#ifndef VERYCD_DOWNTHREAD_H_INCLUDED
#define VERYCD_DOWNTHREAD_H_INCLUDED

#include <wx/thread.h>
#include <wx/string.h>
#include <vector>

using namespace std;


class vd_Thread : public wxThread
{
public:
    vd_Thread():wxThread(wxTHREAD_JOINABLE)
    {

    }
    vd_Thread(vector<wxString>* link,int index,wxString domain,wxString url,int* callback)
            :wxThread(wxTHREAD_JOINABLE),lin(link),inde(index),cb(callback),dom(domain),ur(url)
    {

    }
    void setarg(vector<wxString>* link,int index,wxString domain,wxString url,int* callback);

    virtual void *Entry();

private:
    bool httpDown(wxString* code,const wxString domain,const wxString url);
    wxString dom,ur;
    vector<wxString>* lin;
    int inde;
    int* cb;
};


#endif // VERYCD_DOWNTHREAD_H_INCLUDED
